package com.glasses.manage.auth.service.impl;

import com.glasses.manage.auth.dao.UserDao;
import com.glasses.manage.auth.entity.User;
import com.glasses.manage.auth.entity.UserAddress;
import com.glasses.manage.auth.service.UserService;
import com.glasses.manage.core.biz.BaseBizImpl;
import com.glasses.manage.core.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yy on 2017/10/12.
 */
@Service("userService")
public class UserServiceImpl extends BaseBizImpl<User> implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    protected BaseDao<User> getDao() {
        return userDao;
    }

    @Override
    public List<User> getUserList(String userName, String telphone) {
        return userDao.getUserList(userName, telphone);
    }

    @Override
    public List<UserAddress> getUserAddressList(String userName) {
        return userDao.getUserAddressList(userName);
    }
}
